package com.zys.exercise;

import java.util.ArrayList;
import java.util.Collection;

public class text2 {
    public static void main(String[] args) {
        Collection<student> list = new  ArrayList<student>();
        student s1 = new student("a",1);
        student s2 = new student("b",3);
        student s3 = new student("c",2);
        list.add(s1);
        list.add(s2);
        list.add(s3);
        student s4 = new student("a",1);

        System.out.println(list.contains(s4));


    }
}
